users = {"admin": 2022,"super": 7412372,"xiaoming": 1928374,"xiaohong": 1239471,"xiaogang": 9182172}
n=input()
m=int(input())
if n in users:
    if users[n]-2021==m:
        print("登录成功")
    else:
        print("密码错误")
else:
    print("用户不存在")